
const state = () => ({
    cartSum: 0
  })

const actions = {
    putoCart({commit}){
        commit('putoCart')
    }
}

const mutations = {
    putoCart(state){
        state.cartSum++;
    }
}

export default {
    namespaced:true,
    state,
    actions,
    mutations
}